<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/page/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>招聘计划信息列表</title>
<jsp:include page="/page/common/common.jsp" />
 <link  href="${ctx}/css/recruitmentresult.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/js/recruitmentresult/recruitmentresult.js"></script>
</head>
<body>
<s:form action='/reqPlan/reqPlan_getReqPlan.do' theme="simple">
<s:hidden name="pageno" value="1"/>
	<div class="module_GridList">
	<table align="center" cellpadding="1" cellspacing="1"
		bgcolor="#CCCCCC">
		<caption><h3>招聘计划信息列表</h3></caption>
		<tr>
			<td>公司:<select name="condition.complayId" id="complayId">
				<option value="">所有...</option>
<c:forEach items="${complays}" var="c">
				<option value="${c.id}" 
${conditionMap['condition.complayId'] eq c.id ? "selected='selected'":""} 
				>${c.complayName}</option>
</c:forEach>
			</select>&emsp;&emsp; 部门:<select name="condition.deptId">
				<option value="">所有...</option>
<c:forEach items="${departments}" var="d">
				<option value="${d.id}"
${conditionMap['condition.deptId'] eq d.id ? "selected='selected'":""} 
>${d.departmentName}</option>
</c:forEach>
			</select>&emsp;&emsp; 职位名称:<select name="condition.positionId">
				<option value="">所有...</option>
<c:forEach items="${positions}" var="p">
				<option value="${p.id}"
${conditionMap['condition.positionId'] eq p.id ? "selected='selected'":""}
>${p.positionName}</option>
</c:forEach>
			</select></td>
		</tr>
		<tr>
			<td colspan="2"><s:hidden name="condition.isDel" value="1"></s:hidden>
			实际到岗日期:<s:textarea name="condition.startTime" cssClass="Wdate"
				onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" />&lt;-&gt;
			<s:textarea name="condition.endTime" cssClass="Wdate"
				onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" /> <input
				type="submit" value="查  询" class="add_btn" /></td>
		</tr>
	</table>
<br/>
	<table  class="stripe_tb" id="dataTable" align="center">
		<thead>
			<tr>
				<th width="20%">公司</th>
				<th width="10%">部门</th>
				<th width="10%">职位名称</th>
				<th width="10%">招聘人数</th>
				<th width="10%">招聘成本</th>
				<th width="10%">预计到岗月份</th>
				<th width="20%">实际到岗日期</th>
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
			<s:if test="page.totalSize<=0">
				<tr>
					<td colspan="8" align="center">暂无信息</td>
				</tr>
			</s:if>
			<s:else>
				<s:iterator value="page.result" var="reqPlan">
					<tr class="bgcolor">
						<td><s:property value="complayName" /></td>
						<td><s:property value="deptName" /></td>
						<td><s:property value="positionName" /></td>
						<td><s:property value="personNum" />&nbsp;</td>
						<td><s:property value="employmentCost" />&nbsp;</td>
						<td><s:property value="expectedMonth" />&nbsp;</td>
						<td><s:property value="convArriDate" />&nbsp;</td>
						<td><a href="${ctx}/reqPlan/reqPlan_loadReqPlanDetail.do?id=<s:property value="id" />">修改</a>						<authz:authorize ifAllGranted="AUTH_REQPLAN_DELETE">
							<a href="${ctx}/reqPlan/reqPlan_removeReqPlan.do?id=<s:property value="id" />&isDel=0">删除</a>
						</authz:authorize>
						</td>
					</tr>
				</s:iterator>
			</s:else>
				<tr>
					<td colspan="15"><page:paging
						goUrl="${ctx}/reqPlan/reqPlan_getReqPlan.do"
						query="${conditionMap}" pageUtil="${page}" /></td>
				</tr>
		</tbody>
	</table>
</s:form>
</body>
</html>